import java.sql.*;
import java.util.*;
class JdbcDemo14 {

	public static void main(String[] args) throws Exception {
		 Class.forName("oracle.jdbc.driver.OracleDriver");
		 Connection cn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","oracle");
		 PreparedStatement ps = cn.prepareStatement("delete from employee where eno = ?");
		 Scanner scan = new Scanner(System.in);
		 System.out.println("input empno");
		 int eno  = scan.nextInt();
		 ps.setInt(1, eno);
		 boolean b=ps.execute();
		 int count = ps.getUpdateCount();
		 System.out.println(b);
		 System.out.println(count);
		 ps.close();
		 cn.close();
		 
				 // TODO Auto-generated method stub

	}

}
